﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ReportingSystem.SetUp
{
    /// <summary>
    /// 非全局Filter
    /// 不用注册至Startup
    /// [MyFilterSetUp]使用
    /// </summary>
    public class MyFilterSetUp : Attribute, IActionFilter
    {
        /// <summary>
        /// 操作执行前做的事情
        /// </summary>
        /// <param name="context"></param>
        public void OnActionExecuting(ActionExecutingContext context)
        {

        }

        /// <summary>
        /// 操作执行后做的事情
        /// </summary>
        /// <param name="context"></param>
        public void OnActionExecuted(ActionExecutedContext context)
        {

        }
    }
}
